<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<!--Con//Start-->
	<div class="mar-st-a30">
		<form id="editdataForm" name="dataForm" method="post"
			class="form-horizontal" enctype="multipart/form-data">
			<input type="hidden" name="applicationid" value="{{appvo.id}}"
				id="applicationid" />
			<div class="mar-st-a30">
				<table>
					<tr>
						<td align="left" for="focusedInput">应用名称：</td>
						<td align="left"><input type="text" name="app_name"
							id="app_name" class="form-control" readonly="readonly"
							value="{{appvo.app_name}}" required></td>
					</tr>
					<tr>
						<td align="left" for="focusedInput">应用标识：</td>
						<td align="left"><input type="text" name="identifier"
							id="identifier" class="form-control" readonly="readonly"
							value="{{appvo.identifier}}" required></td>
					</tr>
					<tr>
						<td align="left" for="focusedInput">版本号：</td>
						<td align="left"><input type="text" name="version"
							readonly="readonly" id="appVersion" class="form-control"
							value="{{appVersion.version}}" required></td>
					</tr>

					<tr>
						<td align="left" for="focusedInput">构建号：</td>
						<td align="left"><input type="text" name="build"
							readonly="readonly" id="build" class="form-control"
							value="{{appVersion.build}}" required></td>
					</tr>

					<tr>
						<td class="control-group">版本描述：</td>
						<td colspan="3" class="bd_sr" align="left"><textarea
								id="release_note" style="width: 284px; height: 79px;"
								name="release_note" cols="3" rows="">{{appVersion.release_note}}</textarea></td>
					</tr>
				</table>
			</div>
		</form>
	</div>
</body>
</html>
<script type="text/javascript">
	function formSubmit() {
		var data = $('#editdataForm').serialize();
		var url = "{{ctx}}/mam/appversions/{{appVersion.platformid}}/{{appVersion.version}}/{{appVersion.id}}"
		$.ajax({
			async : true,
			type : "POST",
			url : url,
			data : data,
			dataType : 'json',
			success : function(data, textStatus) {
				if (data.result == "success") {
					bootbox.alert("更新成功！", function() {
						window.location.reload();
					});
				} else {
					bootbox.alert("更新失败，请稍等再试！");
				}
			},
			error : function(data, status, e) {
				bootbox.alert("系统繁忙，请稍后再试！");
			}
		});
	}
</script>
